<%--
  Created by IntelliJ IDEA.
  User: 金贤哲
  Date: 2017/2/27 0027
  Time: 16:17
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
    <title>用户信息</title>
    <meta name="decorator" content="default"/>
    <script src="${ctxStatic}/layer/layer.js"></script>
    <script src="${ctxStatic}/js/widget/stickytableheaders/js/jquery.stickytableheaders.min.js"></script>
    <script type="text/javascript">
        $(document).ready(function() {
            $(".view_service_record").click(function(){
                var id=$(this).data("id");
                parent.layer.open({
                    type: 2,
                    title: '服务记录',
                    shadeClose: true,
                    shade: 0,
                    area: ['90%', '70%'],
                    content: '${ctx}/sys/member/member/seviceRecordPage?id='+id //iframe的url
                });
            });
            $("#contentTable").stickyTableHeaders();
        });

        function page(n,s){
            $("#pageNo").val(n);
            $("#pageSize").val(s);
            $("#searchForm").submit();
            return false;
        }
    </script>


</head>
<body>
<ul class="nav nav-tabs">
    <li class="active"><a href="${ctx}/sys/loan/loan/">符合该产品用户信息</a></li>
</ul>

<sys:message content="${message}"/>
<form:form id="searchForm" modelAttribute="loan" action="${ctx}/sys/loan/loan/checker" method="post" class="breadcrumb form-search">
    <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
    <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
    <input id="loanId" name="loanId" type="hidden" value="${loanId}"/>
</form:form>
<table id="contentTable" class="table table-striped table-bordered table-condensed">
    <thead style="top: 0">
    <tr>
        <th style="width: 5%">用户名</th>
        <th style="width: 5%">昵称</th>
        <th style="width: 5%">真实姓名</th>
    </tr>
    </thead>
    <tbody >
    <c:forEach items="${page.list}" var="member">
        <tr>
            <td style="width: 5%"><a href="${ctx}/sys/member/member/form?id=${member.id}">
                    ${member.usernameFake}  (${fnc:getPhoneAddress(member.username, '86')})
            </a></td>
            <td style="width: 5%">
                    ${member.nickname}
            </td>
            <td style="width: 5%">
                    ${member.realname}
            </td>

        </tr>
    </c:forEach>
    </tbody>
</table>
<div class="pagination">${page}</div>

</body>
</html>
